package com.have.blog.xo.vo;

import com.have.blog.base.validator.annotation.BooleanNotNull;
import com.have.blog.base.validator.group.GetOne;
import com.have.blog.base.validator.group.Insert;
import com.have.blog.base.validator.group.Update;
import com.have.blog.base.vo.BaseVo;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class AdminTodoVo extends BaseVo<AdminTodoVo> {
    @NotBlank(groups = {Insert.class, Update.class})
    private String text;
    @BooleanNotNull(groups = {Update.class, GetOne.class})
    private Boolean done;

    public AdminTodoVo() {
    }
}
